//
//  DetailGoodsShowSelectCell.swift
//  ABSallRec
//
//  Created by 我演示 on 2019/11/7.
//  Copyright © 2019 Jerry-Fu. All rights reserved.
//

import UIKit
import SnapKit


/// 正品认证Cell
class DetailGoodsShowSelectCell: UITableViewCell {
    
    fileprivate lazy var showImageView : UIImageView  = {
        let imageView = UIImageView.init(image: UIImage.init(named: "goodsDetail_protect"))
        return imageView
    }()
    
    fileprivate lazy var showArrowImageView : UIImageView = {
        let imageView = UIImageView.init(image: UIImage.init(named: "tabBar_me_click_icon"))
        return imageView
    }()

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)

        makeUpUI()
        makeUpSubviews()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}

extension DetailGoodsShowSelectCell {
    
    fileprivate func makeUpUI() {
        addSubview(showImageView)
        addSubview(showArrowImageView)
    }
    
    fileprivate func makeUpSubviews() {
        showImageView.snp.makeConstraints { (make) in
            make.left.top.bottom.equalTo(self).offset(0)
            make.right.equalTo(self.snp_right).offset(-20)
        }
        
        showArrowImageView.snp.makeConstraints { (make) in
            make.right.equalTo(self.snp_right).offset(-12)
            make.centerY.equalTo(self.snp_centerY).offset(0)
            make.width.equalTo(7)
            make.height.equalTo(12)
        }
    }
}
